package cn.fl.flow.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import cmm.flowweb.core.cmm.flow.controller.CmmFlowApiController;
import cmm.flowweb.core.cmm.flow.service.impl.ICmmFlowAbstractApiService;
import cn.cmm.base.framework.utils.BaseLogUtils;
import cn.fl.flow.service.IFlowService;
import cn.fl.framework.base.context.CurrentThreadContext;

/**
 * @Description: 工作流API控制器
 */
@Controller
public class FlowApiController extends CmmFlowApiController{

	private static final Logger logger = LoggerFactory.getLogger(FlowApiController.class);

	/**
	 * 任务服务
	 */
	@Autowired
	private IFlowService flowService;

	@Override
	protected ICmmFlowAbstractApiService getCmmFlowService() {
		BaseLogUtils.info(logger, "FlowApiController.getCmmFlowService", "获取返回流程Bean",CurrentThreadContext.getCurrentUserName());
		return flowService;
	}
}
